package com.vincent.sciinfo.service;


import com.vincent.sciinfo.interceptor.FeignPassToken;
import com.vincent.sciinfo.pojo.TSMResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-source", configuration = FeignPassToken.class)
public interface SourceService {

    @RequestMapping("/source/saveFilePath")
    int saveFilePath(@RequestParam String filePathSaved, @RequestParam String fileName);

    @RequestMapping(value = "/source/isExistsFilename")
    TSMResult isExistsFilename(@RequestParam("paperName") String paperName);
}
